<ul class="result normal-list">
<?php
if($result->count() > 0){ 
	foreach($result as $user)
	{
		?>
		<li style="clear:left;">
		<img style="float:left;" src="core.php/photo/thumbnail/id/<?php echo $user['photo']; ?>/type/mini" />
		<ul class="normal-list" style="float:left;">
			<li style="margin-top:0"><a class="ui-state-default ui-corner-all"><?php echo $user['name']; ?></a></li>
			<li style="margin-top:0"><button id="<?php echo $user['id']; ?>"><?php echo __("Send friend request");?></button></li>
		</ul>
	</li>
		<?php  	
	}
}else{
	?>
		<li style="clear:left;">
		<div><?php echo __("No results found"); ?></div>
		
	</li>
		<?php
}
?>
</ul>
<div style="clear:left;"><br/>
<div class="paginator"></div>
</div>